﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core;
using NUnit.Framework;

namespace COFE.Core.Lister
{
    public class ProfileRootPropertyProvider : PropertyProviderBase
    {
        public ProfileRootPropertyProvider()
            : base()
        {
            RegisterMethod(FileSystemInfoProperties.FullParseName, (p) => { return "{" + ProfileRootDirectoryLister.ProfileRootListerKey + "}"; });
            RegisterMethod(FileSystemInfoProperties.Label, (p) => { return COFEShared.CurrentUserProfile.UserName; });
            RegisterMethod(FileSystemInfoProperties.IsCachable, (p) => { return false; });
            RegisterMethod(FileSystemInfoProperties.ParentParseName, (p) => { return ""; });
            RegisterMethod(FileSystemInfoProperties.FileAttributes, (p) => { return FileAttributes.Normal | FileAttributes.Directory; });
            RegisterMethod(FileSystemInfoProperties.COFEAttributes, (p) => { return COFEAttributes.Browsable | COFEAttributes.NotCachable; });
            RegisterMethod(DirectoryInfoProperties.DirectoryType, (p) => { return DirectoryTypeEnum.dtRoot; });


        }
    }
}
